<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>

</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 快递员列表</strong></div>


    <div class="padding border-bottom">
        <ul class="search" style="padding-left:10px;">
            <!--<li>
                <form method="post" action="#" id="listform">
                    <input type="text" placeholder="请输入昵称" name="where" class="input" style="width:100px; line-height:17px;display:inline-block" />
                    <button  class="button border-main icon-search" type="submit" > 搜索</button>
                </form>
            </li>-->
            <li>
                <a  href="member_insert" class="button border-main" type="submit" >添加员工</a>
            </li>
        </ul>
    </div>


    <table class="table table-hover text-center">
        <tr>
            <th>序号</th>
            <th>账号</th>
            <th>密码</th>
            <th>姓名</th>
            <th>所属快递点</th>
            <th>操作员</th>
            <th>添加时间</th>
            <th>操作</th>
        </tr>
        {volist name='list' id='vo'}
        {if condition="$vo.operation == $Think.session.user.name"}
            <tr>
                <td style="width:4%">{$vo.id}</td>

                <td style="width:8%">{$vo.name}</td>
                <td style="width:5%">
                    ******
                </td>
                <td style="width:5%">
                    {$vo.signname}
                </td>
                <td style="width:5%">
                    {$vo.expresspoint}
                </td>
                <td style="width:5%">
                    {$vo.operation}
                </td>
                <td style="width:15%">{$vo['time']|date='Y-m-d H:s',###}</td>

                <td style="width:15%">
                    <div class="button-group">

                        <a type="button" class="button border-red"  onclick="member_det({$vo.id})">修改员工</a>
                        <a class="button border-red" href="#" onclick="return isdel({$vo.id});"    ><span class="icon-trash-o"></span> 删除</a>
                    </div>
                </td>
            </tr>
        {/if}
        {/volist}

        {notempty name="page"}
        <tr>
            <td colspan="10"><div class="pagelist">{$page}</div></td>
        </tr>
        {/notempty}
    </table>
</div>
<script>

    function isdel(a){
        if (confirm('确定要删除吗？删除后无法恢复！')){
            window.location.href="memberdelete?id="+a;
            return true;
        }else{
            return false;
        }

    }
    function member_det(a){

            window.location.href="member_det?id="+a;
            return true;


    }


</script>
</body></html>